package com.ruoyi.wb.mapper;

import com.ruoyi.wb.domain.WbClassifyYearContent;
import com.ruoyi.wb.vo.WbClassifyYearContentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 维保年度类目二级表Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-18
 */
public interface WbClassifyYearContentMapper 
{
    /**
     * 查询维保年度类目二级表
     * 
     * @param classifyYearContentId 维保年度类目二级表主键
     * @return 维保年度类目二级表
     */
    public WbClassifyYearContent selectWbClassifyYearContentByClassifyYearContentId(Long classifyYearContentId);

    /**
     * 查询维保年度类目二级表列表
     * 
     * @param wbClassifyYearContent 维保年度类目二级表
     * @return 维保年度类目二级表集合
     */
    public List<WbClassifyYearContent> selectWbClassifyYearContentList(WbClassifyYearContent wbClassifyYearContent);

    /**
     * 新增维保年度类目二级表
     * 
     * @param wbClassifyYearContent 维保年度类目二级表
     * @return 结果
     */
    public int insertWbClassifyYearContent(WbClassifyYearContent wbClassifyYearContent);

    /**
     * 修改维保年度类目二级表
     * 
     * @param wbClassifyYearContent 维保年度类目二级表
     * @return 结果
     */
    public int updateWbClassifyYearContent(WbClassifyYearContent wbClassifyYearContent);

    /**
     * 删除维保年度类目二级表
     * 
     * @param classifyYearContentId 维保年度类目二级表主键
     * @return 结果
     */
    public int deleteWbClassifyYearContentByClassifyYearContentId(Long classifyYearContentId);

    /**
     * 批量删除维保年度类目二级表
     * 
     * @param classifyYearContentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWbClassifyYearContentByClassifyYearContentIds(Long[] classifyYearContentIds);


    /**
     * 批量新增二级目录
     * @param wbClassifyYearContents
     * @return
     */
    int batchInsert(@Param("wbClassifyYearContentVos") List<WbClassifyYearContentVo> wbClassifyYearContentVos);

    /**
     * 批量查询二级目录 模板
     * @param wbClassifyYearContents
     * @return
     */
    List<WbClassifyYearContent> selectWbClassifyYearContentListByWbClassifyYearId(@Param("wbClassifyYearIds")List<Long> wbClassifyYearIds);


    int deleteWbClassifyYearContentByParentIds(@Param("parentIds") List<Long> parentIds);
}
